package com.wiloon.javax.tmp.itext;

import java.util.ArrayList;
import java.util.List;

public class Word {
    String id;
    String content;
    String page;
    List<Annotation> allAnnotation;

    public Word() {
        allAnnotation = new ArrayList<>();
    }

    public void addReviewer(Annotation annotation) {
        allAnnotation.add(annotation);

    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public List<Annotation> getAllAnnotation() {
        return allAnnotation;
    }

    public void setAllAnnotation(List<Annotation> allAnnotation) {
        this.allAnnotation = allAnnotation;
    }

    public String toString() {
        return String.format("word: \n content:%s \npage:%s", content, page);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
